package com.cgc.venus.server.utils;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by xyr on 2017/9/5.
 * 路由配置项.关于业务操作的
 */
@Component
@ConfigurationProperties(prefix="userAdmin")
public class ApiRouteConfig {
    /* 客户端请求头存放token的key*/
    private String tokenKey;

    /* 用户登录接口*/
    private String loginUrl;

    /* token验证接口*/
    private String validateTokenUrl;

    /* 请求超时时间,单位:秒*/
    private int requestTimeOut;

    /* 登录账号验证接口*/
    private String validateAccountUrl;

    /* 登录密码验证接口*/
    private String validatePasswordUrl;

    /* 权限测试接口*/
    private String info;

    /* 健康状态验证接口*/
    private String validateHealthUrl;

    public String getValidateHealthUrl() {
        return validateHealthUrl;
    }

    public void setValidateHealthUrl(String validateHealthUrl) {
        this.validateHealthUrl = validateHealthUrl;
    }

    public String getTokenKey() {
        return tokenKey;
    }

    public void setTokenKey(String tokenKey) {
        this.tokenKey = tokenKey;
    }

    public String getLoginUrl() {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    public String getValidateTokenUrl() {
        return validateTokenUrl;
    }

    public void setValidateTokenUrl(String validateTokenUrl) {
        this.validateTokenUrl = validateTokenUrl;
    }

    public int getRequestTimeOut() {
        return requestTimeOut;
    }

    public void setRequestTimeOut(int requestTimeOut) {
        this.requestTimeOut = requestTimeOut;
    }

    public String getValidateAccountUrl() {
        return validateAccountUrl;
    }

    public void setValidateAccountUrl(String validateAccountUrl) {
        this.validateAccountUrl = validateAccountUrl;
    }

    public String getValidatePasswordUrl() {
        return validatePasswordUrl;
    }

    public void setValidatePasswordUrl(String validatePasswordUrl) {
        this.validatePasswordUrl = validatePasswordUrl;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
